<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="domain.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<jsp:useBean id="user" scope="session" class="domain.RegisteredUser" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>个人信息</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	</head>

	<body style="border-color: #F90">
		<form name="form1" method="post" action="order">
			<center>
				<table bordercolor="#FFFFFF" cellspacing="0" width="70%" border="0">
					<tr>
						<td bgcolor="#66FFFF" width="80px">
							用户名:&nbsp;&nbsp;&nbsp;
						</td>
						<td>
							<%=new String(user.getUserName().getBytes("ISO8859_1"),
					"utf-8")%>
						</td>
					</tr>
				</table>
				<div>
					<img src="1111.JPG" width="400" height="4" align="middle" />
				</div>
				<table bordercolor="#FFFFFF" cellspacing="0" width="70%" border="0">
					<tr>
						<td bgcolor="#66FFFF" width="80px">
							真实姓名:
						</td>
						<td>
							<%=new String(user.getRealName().getBytes("ISO8859_1"),
					"utf-8")%>
						</td>
					</tr>
				</table>
				<div>
					<img src="1111.JPG" width="400" height="4" align="middle" />
				</div>
				<table bordercolor="#FFFFFF" cellspacing="0" width="70%" border="0">
					<tr>
						<td bgcolor="#66FFFF" width="80px">
							公司名称:
						</td>
						<td>
							<%=new String(user.getCompany().getBytes("ISO8859_1"),
					"utf-8")%>
						</td>
					</tr>
				</table>
				<div>
					<img src="1111.JPG" width="400" height="4" align="middle" />
				</div>
				<table bordercolor="#FFFFFF" cellspacing="0" width="70%" border="0">
					<tr>
						<td bgcolor="#66FFFF" width="80px">
							联系电话:
						</td>
						<td>
							<%=user.getPhoneNumber()%>
						</td>
					</tr>
				</table>
				<div>
					<img src="1111.JPG" width="400" height="4" align="middle" />
				</div>
				<table bordercolor="#FFFFFF" cellspacing="0" width="70%" border="0">
					<tr>
						<td bgcolor="#66FFFF" width="80px">
							所有订单:
						</td>
						<td>
							<%
								ArrayList<domain.Order> orderlist = (ArrayList<domain.Order>) request
										.getAttribute("Allorder");
								if (orderlist == null) {
									response.sendError(404);
									return;
								}
								for (domain.Order order : orderlist) {
							%>
							<div>
								<%=order.getID() %>
								<%=order.getCreatedTime() %> 
							</div>
							<%
								}
							%>
						</td>
						<!--最好是有比边框颜色-->
					</tr>
				</table>
				<table bordercolor="#FFFFFF" cellspacing="0" width="70%" border="0">
					<tr>
						<td width="80px">
							<a href="cart.jsp">查询购物车</a>
						</td>
					</tr>
				</table>
			</center>
		</form>
	</body>
</html>